﻿using NLog;
using System;
using System.Collections.Generic;
using System.Text;

namespace WhatCatch.Core
{
    public class CrawlerLog : ICrawlerLog
    {
        ILogger logger = LogManager.GetCurrentClassLogger();
        public CrawlerLog()
        {
            
        }

        public void Error(string log)
        {
            Console.WriteLine(log);
            logger.Error(log);
        }

        public void Info(string log)
        {
            Console.WriteLine(log);
            logger.Info(log);
        }
    }
}
